<link rel="stylesheet" type="text/css" href="/bootstrap/css/DT_bootstrap.css"></link>
<script type="text/javascript" charset="utf-8" language="javascript" src="/js/dataTable/DT_bootstrap.js"></script>

<script type="text/javascript" charset="utf-8">
			
			/* Table initialisation */
			$(document).ready(function() {
				$('.dataTable').dataTable( {
					"sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>",
					"sPaginationType": "bootstrap",
					"oLanguage": {
						"sLengthMenu": "_MENU_ records per page"
					}
				} );
			} );
		</script>

    <h1>Seleccione el Usuario</h1>            
<div class="span12">

        <h3>Pueden anotarse:</h3>
        <table table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered dataTable" id="esp">
        <thead>
            <tr>
                <td>Nombre</td>
                <td>Apellido</td>
                <td>Tipo Documento</td>
                <td>Nro Documento</td>
                <td>Estado</td>
                <td>Seleccionar</td>
            </tr>
        </thead>    
        <tbody>
            
            <?php if(count($this->puede)>=1):?>
            <?php foreach($this->puede as $s):?>
            <tr>
                <td><?php echo unserialize($s)->getNombre(); ?></td>
                <td><?php echo unserialize($s)->getApellido(); ?></td>
                <td><?php echo unserialize($s)->getTipoDoc(); ?></td>
                <td><?php echo unserialize($s)->getDocumento(); ?></td>
                <td><?php echo unserialize($s)->getEstado(); ?></td>
                <td><button onclick="window.location.href='/usuarioasse/verificarusuario/idHist/<?php echo unserialize($s)->getNroHistorico(); ?>'">Seleccionar</button></td>
            </tr>
            <?php endforeach; ?>
             <?php else: ?>
            <tr>
                <td>No hay registros</td>
                <td>No hay registros</td>
                <td>No hay registros</td>
                <td>No hay registros</td>
                <td>No hay registros</td>
                <td>No hay registros</td>
            </tr>
           <?php endif;?>
        </tbody>

        </table>
   
    
   
        <h3>No Pueden anotarse:</h3>
        <table table cellpadding="0" cellspacing="0" border="0"  class="table table-striped table-bordered dataTable" id="esp1" width="100%">
        <thead>
            <tr>
                <td>Nombre</td>
                <td>Apellido</td>
                <td>Tipo Documento</td>
                <td>Nro Documento</td>
                <td>Estado</td>
            </tr>
        </thead>    
        <tbody>
            <?php foreach($this->noPuede as $p){?>    
            <tr>
                <td><?php echo unserialize($p)->getNombre(); ?></td>
                <td><?php echo unserialize($p)->getApellido(); ?></td>
                <td><?php echo unserialize($p)->getTipoDoc(); ?></td>
                <td><?php echo unserialize($p)->getDocumento(); ?></td>
                <td><a href="#" class="btn btn-warning" rel="popover" title="Estado" data-content= <?php echo unserialize($p)->getEstado();?> </a></td>
                <td><?php echo unserialize($p)->getEstado(); ?></td>
            </tr>
            <?php };?>
        </tbody>

        </table>
</div>